package net.zjitc.service.Impl;

import net.zjitc.mapper.UserMapper;
import net.zjitc.pojo.User;
import net.zjitc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/3/27 13:34
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User checkname(String username) {
        return userMapper.checkname(username);
    }

    @Override
    public User checkemail(String email) {
        return userMapper.checkemail(email);
    }

    @Override
    public User login(String username, String password) {
        return userMapper.login(username,password);
    }

    @Override
    public User findById(Integer user_id) {
        return userMapper.findById(user_id);
    }
}
